Blitz (180/213)

From:Francis G. Loch
Date:26 May 2000 at 14:11:34
Subject:Re: Bug in Lof?

Hi Tony,

--- Tony Rolfe <edgewater@shoalhaven.net.au> wrote: >
On Wed, 24 May 2000 05:09:43 -0700 (PDT) Francis G.
> Loch said:
> > Hi Gareth,
> >
> > --- Gareth Griffiths <gazchap@btinternet.com>
> wrote: >
> > �� Sender: Francis G. Loch <fgloch@yahoo.com>
> > > > What do you mean by a secondary sort? Are you
> > > talking
> > > > about having two array lists (like a table),
> e.g.:
> > >
> > > I mean like, say you have four songs by the same
> > > artist, e.g.
> > >
> > > Chemical Brothers: Hey Boy Hey Girl
> > > Chemical Brothers: Under The Influence
> > > Chemical Brothers: Music - Response
> > > Chemical Brothers: Out Of Control
> > >
> > > Now that I have the artists in alpha. order, I
> would
> > > like the titles in
> > > alpha. order too, for each artist.
> >
> > Sorry for not replying earlier, but I've just had
> my
> > appendix removed and I only got back from the
> hospital
> > yesterday.
>
> Ouch. Hope all is OK.

Yeah, I'm fine now. Just a little sore where they cut
me open. :(

>
> >
> > What you could do it is have an array (or two, if
> you
> > want) and check the artist's name (after the
> inital
> > sort) and make a note of the range that that
> > particular artist comes at in the array.
>
> Alternatively, with many sort algorythms, things
> with the same sort
> key stay in the original order when sorted. In
> this case, do a sort
> on the least significant key first, then work up to
> the most
> important. In your case, sort on Title first,
> then Artist.
>
> I don't know whether this will work with the
> particular sort used by
> Blitz, but it won't take too long to try it out.

That algorithm should work, and it's simplier than
what I had suggested (and very probably faster as
well).

Kind regards,

Francis.

=====
e-mail:- fgloch@yahoo.com
web-site:- http://www.geocities.com/fgloch
Member of GAUG
Glasgow Amiga Users Group
*-Join our mailing list-*
gaug-subscribe@egroups.com

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie